package com.jiangyao.service;

import com.github.pagehelper.PageInfo;
import com.jiangyao.common.ApiResult;
import com.jiangyao.common.exception.ServerException;
import com.jiangyao.model.dto.DeliverDTO;
import com.jiangyao.model.dto.JobDTO;
import com.jiangyao.model.dto.backend.AddJobDTO;
import com.jiangyao.model.dto.backend.EditJobAuditStatusDto;
import com.jiangyao.model.dto.backend.EditJobStatusDto;
import com.jiangyao.model.dto.backend.JobListDTO;
import com.jiangyao.model.entity.Category;
import com.jiangyao.model.entity.Job;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiangyao.model.vo.JobVo;
import com.jiangyao.model.vo.SendResumeVo;

import java.util.List;
import java.util.Locale;

/**
 * <p>
 * 职位 服务类
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-12
 */
public interface JobService extends IService<Job> {

    PageInfo getWebJobList(JobDTO jobDTO);

    JobVo getJobDetail(Integer jobId);

    List<SendResumeVo> getResumeSuccess(DeliverDTO deliverDTO) throws ServerException;


    Job addJob(AddJobDTO addJobDTO);

    Job editJob(AddJobDTO addJobDTO) throws ServerException;

    PageInfo<JobVo> getJobList(JobListDTO jobListDTO);

    Job getBkJobDetail(Integer jobId);

    void editJobStatus(EditJobStatusDto editJobStatusDto);

    void editJobAuditStatus(EditJobAuditStatusDto dto);
}
